home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_05 / allison / person2.h < prev    next >
C/C++ Source or Header  |  1995-03-12  |  456b  |  24 lines

  1. LISTING 19 - A flawed Person class that stores text on the heap
  2. // person2.h
  3. #include "date5.h"
  4. #include "bool.h"
  5.  
  6. class ostream;
  7.  
  8. class Person
  9. {
  10.     friend ostream & operator<<(ostream &, const Person &);
  11.  
  12. public:
  13.     Person();
  14.     Person(const char *,const char *,const Date &,const char *);
  15.     ~Person();
  16.     bool operator==(const Person &) const;
  17.  
  18. private:
  19.     char * last;
  20.     char * first;
  21.     Date birth;
  22.     char * ssn;
  23. };
  24.